.rg-table .ant-table-thead {
  height: 44px !important;
  margin-bottom: 1px !important;
}

.rg-table .ant-table-thead .ant-table-cell {
  background-color: var(--fill-1) !important;
  border: none !important;
}

.rg-table .ant-table-cell {
  border-bottom: 1px solid #f2f3f5 !important;
}

/* 第一个单元格 - 左上和左下圆角 */
.rg-table .ant-table-thead > tr > th:first-child {
  border-radius: 6px 0 0 6px;
}

/* 最后一个单元格 - 右上和右下圆角 */
.rg-table .ant-table-thead > tr > th:nth-last-child(2) {
  border-radius: 0 6px 6px 0;
}

.rg-table .ant-table-thead > tr > th:nth-last-child(1) {
  border-radius: 6px;
}

.rg-table .ant-table-tbody {
  margin-top: 2px !important;
}

.rg-table .ant-table-tbody > tr.ant-table-row-selected > td {
  background-color: var(--fill-2) !important;
  border-bottom-color: #fff !important;
}

.rg-table .ant-table-tbody > tr:hover > td {
  background-color: var(--fill-1) !important;
  border-bottom-color: #fff !important;
  cursor: pointer;
}

.rg-table .ant-table-tbody > tr.hide-bottom-border > td {
  border-bottom-color: #fff !important;
}

.rg-table .ant-table-tbody > tr:hover > td:first-child {
  border-radius: 6px 0 0 6px !important;
}

.rg-table .ant-table-tbody > tr:hover > td:last-child {
  border-radius: 0 6px 6px 0 !important;
}

.rg-table .ant-table-tbody > tr.ant-table-row-selected > td:first-child {
  border-radius: 6px 0 0 6px !important;
}

.rg-table .ant-table-tbody > tr.ant-table-row-selected > td:last-child {
  border-radius: 0 6px 6px 0 !important;
}

.rg-table .ant-table-header {
  margin-bottom: 1px;
}

/* 自定义表格滚动条样式 - 高优先级 */
.rg-table .ant-table-body {
  scrollbar-color: #bbb transparent !important;
  -ms-overflow-style: auto !important;
  scroll-behavior: smooth !important;
}
